cmake_minimum_required(VERSION 1.9)
project (rtl906xCtrl)
add_executable(rtl906xCtrl rtl906xCtrl.c)
target_link_libraries(rtl906xCtrl rtl906x mdionetlink mnl)
get_filename_component(sysroot "$ENV{PKG_CONFIG_SYSROOT_DIR}" ABSOLUTE)
target_include_directories(rtl906xCtrl SYSTEM PUBLIC ${sysroot}/usr/include/asicdrv ${sysroot}/usr/include/asicdrv/basic)
add_definitions(-DRTL_907X_VA)
install(TARGETS rtl906xCtrl RUNTIME DESTINATION bin)